/* 全局页面样式 */
page {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

/* 容器样式 */
.container {
	padding: 30rpx;
	min-height: 100vh;
	width: 100%;
	box-sizing: border-box;
	background-color: #f5f5f5;
	overflow-x: hidden;
}

/* 表单区域 */
.form-section {
	background-color: #FFFFFF;
	border-radius: 12rpx;
	padding: 30rpx;
	margin-bottom: 30rpx;
	box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

/* 表单字段 */
.form-item {
	margin-bottom: 30rpx;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

/* 表单标签 */
.form-label {
	font-size: 28rpx;
	color: #333333;
	margin-bottom: 15rpx;
	display: block;
	width: 100%;
	box-sizing: border-box;
	word-wrap: break-word;
	word-break: break-all;
}

/* 必填标记 */
.required:after {
	content: ' *';
	color: #FF0000;
}

/* 输入框 */
.form-input {
	background-color: #F8F8F8;
	padding: 20rpx;
	border-radius: 8rpx;
	font-size: 28rpx;
	width: 100% !important;
	box-sizing: border-box;
	color: #333333;
	display: block;
	max-width: 100%;
	height: 80rpx; /* 确保足够的高度 */
	line-height: 40rpx; /* 适当的行高 */
}

/* 文本域容器 */
.textarea-container {
	background-color: #F8F8F8;
	border-radius: 8rpx;
	padding: 20rpx;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

/* 文本域 */
.form-textarea {
	width: 100% !important;
	height: 200rpx;
	font-size: 28rpx;
	color: #333333;
	box-sizing: border-box;
	max-width: 100%;
	display: block;
	line-height: 1.5; /* 文本区域行高 */
}

/* uniapp组件样式修复 */
uni-textarea {
	width: 100%;
	max-width: 100%;
}

uni-input {
	width: 100%;
	max-width: 100%;
	height: 80rpx !important; /* 固定高度 */
	line-height: 40rpx; /* 行高 */
	display: flex; /* 弹性布局 */
	align-items: center; /* 垂直居中 */
}

/* 选择器 */
.form-picker {
	background-color: #F8F8F8;
	padding: 20rpx;
	border-radius: 8rpx;
	width: 100%;
	box-sizing: border-box;
	max-width: 100%;
	height: 80rpx; /* 确保足够的高度 */
	line-height: 40rpx; /* 适当的行高 */
	display: flex; /* 弹性布局 */
	align-items: center; /* 垂直居中 */
}

.picker-value {
	font-size: 28rpx;
	color: #333333;
	width: 100%;
	box-sizing: border-box;
	word-wrap: break-word;
	word-break: break-all;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* 标题样式 */
.section-title {
	font-size: 36rpx;
	font-weight: bold;
	margin-bottom: 20rpx;
	color: #333333;
	display: block;
	width: 100%;
	box-sizing: border-box;
	word-wrap: break-word;
	word-break: break-all;
}

.section-desc {
	font-size: 28rpx;
	color: #666666;
	margin-bottom: 40rpx;
	display: block;
	width: 100%;
	box-sizing: border-box;
	word-wrap: break-word;
	word-break: break-all;
}

/* 上传相关样式优化 */
.upload-container {
	margin-top: 10rpx;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.upload-box {
	background-color: #F8F8F8;
	border-radius: 8rpx;
	padding: 40rpx 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	cursor: pointer;
	position: relative;
	z-index: 5;
	-webkit-tap-highlight-color: rgba(0,0,0,0); /* 移除点击高亮效果 */
	-webkit-touch-callout: none; /* 禁止iOS长按菜单 */
	-webkit-user-select: none; /* 禁止选中内容 */
	user-select: none;
	/* 增强点击效果 */
	border: 2rpx dashed #CCCCCC;
	transition: all 0.3s ease;
	min-height: 200rpx; /* 确保有足够高度更容易点击 */
}

/* 增加点击提示效果 */
.upload-box:active {
	background-color: #EEEEEE;
	transform: scale(0.98);
}

/* 禁用长按菜单 */
.upload-box * {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
}

.upload-icon {
	font-size: 60rpx;
	margin-bottom: 20rpx;
}

.upload-text {
	font-size: 28rpx;
	color: #666666;
}

.upload-tip {
	font-size: 24rpx;
	color: #999999;
	margin-top: 10rpx;
	display: block;
	width: 100%;
	box-sizing: border-box;
	word-wrap: break-word;
	word-break: break-all;
}

/* 图片预览 */
.image-preview {
	position: relative;
	margin-bottom: 10rpx;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.preview-image {
	width: 100%;
	height: 300rpx;
	border-radius: 8rpx;
	box-sizing: border-box;
	object-fit: cover;
}

.image-actions {
	position: absolute;
	bottom: 10rpx;
	right: 10rpx;
	display: flex;
	flex-wrap: wrap;
}

.image-btn {
	font-size: 24rpx;
	padding: 6rpx 20rpx;
	border-radius: 6rpx;
	margin-left: 10rpx;
	margin-top: 10rpx;
}

/* 视频预览 */
.upload-preview {
	background-color: #F8F8F8;
	border-radius: 8rpx;
	padding: 20rpx;
	margin-bottom: 10rpx;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.preview-name {
	font-size: 28rpx;
	color: #333333;
	word-break: break-all;
	margin-bottom: 15rpx;
	display: block;
	width: 100%;
	box-sizing: border-box;
}

.preview-actions {
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	width: 100%;
	box-sizing: border-box;
}

.preview-btn {
	font-size: 24rpx;
	margin-left: 20rpx;
	margin-top: 10rpx;
	padding: 6rpx 20rpx;
	border-radius: 6rpx;
}

.play-btn {
	background-color: #1BAE76;
	color: #FFFFFF;
}

/* 按钮样式 */
.delete-btn {
	background-color: #FF5151;
	color: #FFFFFF;
}

.submit-section {
	padding: 20rpx 0;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.submit-btn {
	background-color: #1BAE76;
	color: #FFFFFF;
	font-size: 32rpx;
	padding: 20rpx 0;
	border-radius: 8rpx;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
}

.submit-btn[disabled] {
	background-color: #CCCCCC;
	color: #FFFFFF;
}

/* 选项编辑 */
.option-edit-input {
	background-color: #FFFFFF;
	padding: 15rpx;
	border-radius: 8rpx;
	font-size: 28rpx;
	width: 100% !important;
	box-sizing: border-box;
	margin-bottom: 15rpx;
	display: block;
	max-width: 100%;
	height: 80rpx; /* 确保足够的高度 */
	line-height: 40rpx; /* 适当的行高 */
}

/* 修复iOS样式 */
input,
textarea {
	-webkit-appearance: none;
	appearance: none;
	width: 100% !important;
	max-width: 100% !important;
	line-height: 1.5; /* 行高 */
}

/* =========== 体能测试页面特殊样式 =========== */
.type-selector {
	background-color: #FFFFFF;
	border-radius: 12rpx;
	padding: 30rpx;
	margin-bottom: 30rpx;
	box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.selector-header {
	margin-bottom: 30rpx;
	width: 100%;
	overflow: hidden;
}

.type-tabs {
	display: flex;
	border-bottom: 1rpx solid #EEEEEE;
	width: 100%;
	overflow: hidden;
}

.type-tab {
	flex: 1;
	text-align: center;
	padding: 20rpx 0;
	font-size: 30rpx;
	color: #666666;
	position: relative;
}

.type-tab.active {
	color: #1BAE76;
	font-weight: bold;
}

.type-tab.active:after {
	content: '';
	position: absolute;
	bottom: -1rpx;
	left: 50%;
	transform: translateX(-50%);
	width: 40rpx;
	height: 4rpx;
	background-color: #1BAE76;
}

/* =========== 考试页面特殊样式 =========== */
.questions-section {
	margin-top: 30rpx;
	background-color: #FFFFFF;
	border-radius: 12rpx;
	padding: 30rpx;
	box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20rpx;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.add-btn {
	font-size: 28rpx;
	color: #1BAE76;
	padding: 10rpx 20rpx;
	border-radius: 6rpx;
	border: 1rpx solid #1BAE76;
}

.empty-tip {
	text-align: center;
	margin-top: 20rpx;
	margin-bottom: 20rpx;
	width: 100%;
	box-sizing: border-box;
}

.empty-text {
	font-size: 28rpx;
	color: #666666;
}

.question-list {
	margin-top: 20rpx;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.question-item {
	background-color: #FFFFFF;
	border-radius: 8rpx;
	padding: 20rpx;
	margin-bottom: 20rpx;
	box-shadow: 0 1rpx 5rpx rgba(0, 0, 0, 0.05);
	border: 1rpx solid #EEEEEE;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.question-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10rpx;
	width: 100%;
	box-sizing: border-box;
}

.question-type {
	font-size: 28rpx;
	color: #333333;
}

.question-score {
	font-size: 28rpx;
	color: #666666;
}

.question-options {
	margin-bottom: 10rpx;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.option-item {
	margin-bottom: 5rpx;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.option-letter {
	font-size: 28rpx;
	color: #333333;
}

.option-content {
	font-size: 28rpx;
	color: #666666;
	word-wrap: break-word;
	word-break: break-all;
}

.option-correct {
	font-size: 28rpx;
	color: #1BAE76;
	margin-left: 10rpx;
}

.question-judge {
	margin-top: 10rpx;
	margin-bottom: 10rpx;
	width: 100%;
	box-sizing: border-box;
}

.judge-option {
	font-size: 28rpx;
	color: #666666;
	margin-right: 20rpx;
}

.judge-correct {
	font-size: 28rpx;
	color: #1BAE76;
	font-weight: bold;
}

.question-actions {
	margin-top: 10rpx;
	display: flex;
	justify-content: flex-end;
	width: 100%;
	box-sizing: border-box;
	flex-wrap: wrap;
}

.action-btn {
	font-size: 28rpx;
	color: #666666;
	padding: 6rpx 20rpx;
	border-radius: 6rpx;
	margin-left: 10rpx;
	margin-top: 5rpx;
}

.edit-btn {
	border: 1rpx solid #1BAE76;
	color: #1BAE76;
}

/* 弹窗样式 */
.question-modal {
	background-color: #FFFFFF;
	border-radius: 12rpx;
	width: 650rpx;
	max-height: 80vh;
	box-sizing: border-box;
	overflow: hidden;
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 30rpx;
	border-bottom: 1rpx solid #EEEEEE;
	width: 100%;
	box-sizing: border-box;
}

.modal-title {
	font-size: 32rpx;
	font-weight: bold;
	color: #333333;
}

.modal-close {
	font-size: 40rpx;
	color: #999999;
	padding: 0 20rpx;
}

.modal-body {
	padding: 30rpx;
	max-height: 60vh;
	overflow-y: auto;
	width: 100%;
	box-sizing: border-box;
}

.options-list {
	margin-top: 10rpx;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.option-edit-item {
	background-color: #F8F8F8;
	border-radius: 8rpx;
	padding: 20rpx;
	margin-bottom: 20rpx;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.option-edit-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10rpx;
	width: 100%;
	box-sizing: border-box;
}

.option-edit-letter {
	font-size: 28rpx;
	color: #333333;
	font-weight: bold;
}

.option-delete {
	font-size: 36rpx;
	color: #FF5151;
	padding: 0 10rpx;
}

.option-correct-selector {
	display: flex;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
}

.option-correct-text {
	font-size: 26rpx;
	color: #333333;
	margin-left: 10rpx;
}

.add-option-btn {
	padding: 20rpx 0;
	background-color: #F8F8F8;
	border-radius: 8rpx;
	text-align: center;
	margin-top: 10rpx;
	width: 100%;
	box-sizing: border-box;
}

.add-option-text {
	font-size: 28rpx;
	color: #1BAE76;
}

.judge-options {
	display: flex;
	align-items: center;
	margin-top: 10rpx;
	width: 100%;
	box-sizing: border-box;
}

.judge-option-item {
	display: flex;
	align-items: center;
	margin-right: 60rpx;
}

.judge-option-text {
	font-size: 28rpx;
	color: #333333;
	margin-left: 10rpx;
}

.modal-footer {
	display: flex;
	justify-content: flex-end;
	padding: 20rpx 30rpx;
	border-top: 1rpx solid #EEEEEE;
	width: 100%;
	box-sizing: border-box;
	flex-wrap: wrap;
}

.cancel-btn {
	font-size: 28rpx;
	color: #666666;
	background-color: #F5F5F5;
	padding: 15rpx 30rpx;
	border-radius: 8rpx;
	margin-right: 20rpx;
	margin-top: 5rpx;
}

.confirm-btn {
	font-size: 28rpx;
	color: #FFFFFF;
	background-color: #1BAE76;
	padding: 15rpx 30rpx;
	border-radius: 8rpx;
	margin-top: 5rpx;
}

/* 隐藏按钮但保持可点击 */
.hidden-button {
	display: none !important;
}